<template>
    <swiper>
      <swiper-item v-for="item in banners">
        <a :href="item.link" class="link_a">
          <img :src="item.image" alt="">
        </a>
      </swiper-item>
    </swiper>
</template>

<script>
  import {Swiper,SwiperItem} from "../../../components/common/swiper/index";
  export default {
    name: "SwiperBanner",
    components:{
      Swiper,
      SwiperItem,
    },
    props:{
      banners:{
        type:Array,
        default(){
          return []
        }
      }
    },
    data(){
      return{

      }
    }

  }
</script>

<style scoped>
.link_a img{
  height: 100%;
  width: 100%;
}
</style>